from odoo import api, models, fields
from odoo.tools import date_utils


class nbd_internalreview(models.Model):
    _name = 'nbd.internalreview'
    _description = 'NBD回顾会议'

    review_time = fields.Datetime(string='回顾时间', required=True)
    review_result = fields.Selection([
        ('1', "通过"),
        ('2', "未通过")
    ], string="回顾结果", required=True)

    file_ids = fields.One2many(
        comodel_name='nbd.filemanager',
        inverse_name='id',
        domain=lambda self: [('res_model', '=', self._name)],
        string='附件'
    )
    task_id = fields.Many2one(
        comodel_name='project.task',
        string='taskid'
    )